package cn.funeralobjects.test.model;

/**
 * @author FuneralObjects
 * Create date: 2020/4/15 11:11 AM
 */
public class Son extends Father {
    private int k = test();
    private static int j = method();

    static {
        System.out.println("son - static - (6)");
    }

    public Son() {
        System.out.println("son - constructor - (7)");
    }

    {
        System.out.println("son - (8)");
    }

    @Override
    public int test() {
        System.out.println("son - test - (9)");
        return 3;
    }

    public static int method() {
        System.out.println("son - static - method (10)");
        return 4;
    }

    public static void main(String[] args) {
        Son s1 = new Son();
        System.out.println();
        Son s2 = new Son();
        System.out.println();
    }

}
